﻿using System;
using viBlog.Classes;
using viBlog.Controllers;
using visinia.SmartEngine.Modules;

public partial class Modules_viBlog_SharePost_SharePost : WebModule
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int PostId = 0;
        if (Int32.TryParse(Request.QueryString["PostId"], out PostId))
        {
            //Post post = PostController.GetPost(PostId);
            //DeliciousUrl(post);
            //StumbleuponUrl(post);
            Container.Visible = true;
        }
    }

    //private void DeliciousUrl(Post post)
    //{
    //    string DeliciousLink = "http://delicious.com/save?url={0}/&title={1}";
    //    Delicious.HRef = string.Format(DeliciousLink, post.Url, post.Title);
    //}

    //private void StumbleuponUrl(Post post)
    //{
    //    string StumbleuponLink = "http://www.stumbleupon.com/submit?url={0}/&title={1}";
    //    Stumbleupon.HRef = string.Format(StumbleuponLink, post.Url, post.Title);        
    //}
}
